package com.happy016.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

@RestController
public class ShareSessionController {

    @GetMapping("/{port}")
    public String test(@PathVariable String port, HttpSession session){
        String sessionId = session.getId();
        return port+"-------"+sessionId;
    }
}
